{% extends "blog/base_blog.html" %}


{% block title %}Blogs{% endblock %}
{% block body_class %}{{ block.super }} post_list{% endblock %}


{% block content_title %}
  <h1>Blogs</h1>
{% endblock %}


{% block content %}
  <div class = "post_list">
    {% for post in object_list %}
    <div>
      <h3 class = "title"><a href="{{ post.get_absolute_url }}">{{ post.title }}</a></h3>
      <p class = "date">{{ post.publish|date:"Y F d" }}</p>
      <p class = "tease">{{ post.tease }}</p>
      <br>
    </div>
    {% endfor %}
  </div>
  
  {% if is_paginated %}
  <p>
    {% if has_next %}
    <a href="?page={{ next }}"> <div class = "older"> Previous--&gt;</div></a>
    {% endif %}
    {% if has_next and has_previous %} | {% endif %}
    {% if has_previous %}
    <a href="?page={{ previous }}"><div class = "newer">&lt;--Next</div></a>
    {% endif %}
  </p>
  {% endif %}
{% endblock %}



